package com.nhjf.common.util.tools;



import java.text.DecimalFormat;
import java.text.NumberFormat;

public class FormtNumber {
	 
	public static String getNumberForTwo(Double OldNumber){
		NumberFormat number= (DecimalFormat)DecimalFormat.getInstance();   
		((DecimalFormat) number).applyPattern("#.##");//最多两位小数   
	 
		return   number.format(OldNumber);  
	}
	
}
